///:Demo2.java
package com.cqgcxy.stranger.case2;

import com.cqgcxy.stranger.domain.User;

/**
 * @author icechen1219
 * @date 2018/11/20
 */
public class Demo2 {
    public static void main(String[] args) throws Exception {
//        Class<User> userClass = User.class;
        Class<User> userClass= (Class<User>) Class.forName("com.cqgcxy.stranger.domain.User");
        User user = userClass.newInstance();
        System.out.println(user.toString());

    }
}
///:Demo2.java
